/*
---
script: dialog.js
description: ---
license: MIT-style license
authors:
- Christian Merz
requires:
- core:1.3.2/Element.Event
provides: [dialogCME]
...
*/
window.addEvent('domready', function(){

     var dialogCme = new DialogCME({
		'title':'Tambah Parameter',
		'content':
                    "<table>\n\
                        <tr>\n\
                            <td align='left'><label for='nama parameter'>Nama Parameter </label></td><td><input id='namaparam'  value='' type='text' size='25'></td></tr>\n\
                        <tr>\n\
                            <td align='left'><label for='tipe parameter'>Tipe Parameter</label></td><td align='left'>\n\
                                <select>\n\
                                        <option>String</option>\n\
                                        <option>Integer</option>\n\
                                        <option>Date</option>\n\
                                        <option>Numeric</option>\n\
                                </select>\n\
                            </td>\n\
                        </tr>\n\
                        <tr>\n\
                            <td align='left'><label for='nilai parameter'>Nilai Parameter</label></td><td><input id='nilaiparam' type='text' size='25'></td></tr>\n\
                     </table>",
		'submit':{
			'exists':true,
			'value':'Simpan',
			'fn': function(e){
				alert($('namaparam').getAttribute($('namaparam')));
			}
		},		
		'cancel':{
			'exists':true,
			'value':'Batal',
			'fn': function(e){
				this.hide()
			}
		}
	});
    
    $('addParam').addEvent('click', function(e){
        e = new Event(e).stop();
        dialogCme.show();
    }
.bind(this));
});